<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <header>
        <h1>W3cplus</h1>
        <nav>
            <ul>
                <li><a href="">home</a></li>
                <li><a href="">blog</a></li>
            </ul>
        </nav>
    </header>
    <main>
        <article>
            <h2>现代 Web 布局技术</h2>
            <p>使用 CSS Flexbox 技术构建圣杯布局（Holy Grail Layout）</p>
        </article>
        <aside>
            <h3>左侧列</h3>
        </aside>
        <aside>
            <h3>右侧列</h3>
        </aside>
    </main>
    <footer>
        <ul>
            <li><a href="home">home</a></li>
            <li><a href="blog">blog</a></li>
        </ul>
    </footer>
</body>

</html>

<style>
    body {
        display: flex;
        flex-direction: column;
        min-height: 600px;
        /* border-style: solid;
        border-color: orange;
        border-width: 12px; */
        color: orange;
    }

    header {
        flex: 1;
        flex-basis: 0px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0px 20px 0px 20px;
        background-color: aqua;
    }

    main {
        flex: 1;
        flex-basis: 0px;
        display: flex;
        justify-content: space-between;
        background-color: brown;
    }

    footer {
        flex: 1;
        flex-basis: 0px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: aquamarine;
    }

    aside {
        display: flex;
        flex: 1;
        align-items: center;
        background-color: plum;
        min-width: 50px;
        max-width: 320px;
    }

    aside:nth-of-type(1) {
        order: -1;
    }

    article {
        flex: 4;
        min-width: 0px;
    }

    li {
        display: inline-block;

    }
</style>